package com.erb.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 投资
 */
public class Invest implements Serializable {

	private static final long serialVersionUID = -4502761751013217103L;

	private int id;
	private int uid; //用户id
	private int pid; //项目id
	private Integer rid; //红包id
	private double investMoney;  //投资金额
	private Timestamp investDate; //投资时间
	private Integer lockDate;//锁定期 /月
	private Timestamp endDate; //结束时间
	private double profit; //收益
	private Timestamp lastProfitDate;//最后一次收益时间
	private int status; //状态（1、投标中，还在等待集款，未产生收益。2、回款中。3、已结束。）
	private int invsetStatus;  //数据状态（1、显示。2、隐藏）
	private User user;

	@Override
	public String toString() {
		return "Invest{" +
				"id=" + id +
				", uid=" + uid +
				", pid=" + pid +
				", rid=" + rid +
				", investMoney=" + investMoney +
				", investDate=" + investDate +
				", lockDate=" + lockDate +
				", endDate=" + endDate +
				", profit=" + profit +
				", lastProfitDate=" + lastProfitDate +
				", status=" + status +
				", invsetStatus=" + invsetStatus +
				", user=" + user +
				'}';
	}

	public Integer getRid() {
		return rid;
	}

	public void setRid(Integer rid) {
		this.rid = rid;
	}

	public Timestamp getLastProfitDate() {
		return lastProfitDate;
	}

	public void setLastProfitDate(Timestamp lastProfitDate) {
		this.lastProfitDate = lastProfitDate;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public double getInvestMoney() {
		return investMoney;
	}

	public void setInvestMoney(double investMoney) {
		this.investMoney = investMoney;
	}

	public Timestamp getInvestDate() {
		return investDate;
	}

	public void setInvestDate(Timestamp investDate) {
		this.investDate = investDate;
	}

	public Integer getLockDate() {
		return lockDate;
	}

	public void setLockDate(Integer lockDate) {
		this.lockDate = lockDate;
	}

	public Timestamp getEndDate() {
		return endDate;
	}

	public void setEndDate(Timestamp endDate) {
		this.endDate = endDate;
	}

	public double getProfit() {
		return profit;
	}

	public void setProfit(double profit) {
		this.profit = profit;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getInvsetStatus() {
		return invsetStatus;
	}

	public void setInvsetStatus(int invsetStatus) {
		this.invsetStatus = invsetStatus;
	}
}
